package com.zh.servicer.service.impl;


import com.zh.servicer.dao.ServiceRoleDao;
import com.zh.servicer.domain.ServiceRoleDO;
import com.zh.servicer.service.ServiceRoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;


@Service
public class ServiceRoleServiceImpl implements ServiceRoleService {
	@Autowired
	private ServiceRoleDao serviceRoleDao;
	
	@Override
	public ServiceRoleDO get(String roleId){
		return serviceRoleDao.get(roleId);
	}
	
	@Override
	public List<ServiceRoleDO> list(){
		return serviceRoleDao.list();
	}
	
	@Override
	public int count(Map<String, Object> map){
		return serviceRoleDao.count(map);
	}
	
	@Override
	public int save(ServiceRoleDO role){
		return serviceRoleDao.save(role);
	}
	
	@Override
	public int update(ServiceRoleDO role){
		return serviceRoleDao.update(role);
	}
	
	@Override
	public int remove(String roleId){
		return serviceRoleDao.remove(roleId);
	}
	
	@Override
	public int batchRemove(String[] roleIds){
		return serviceRoleDao.batchRemove(roleIds);
	}
	
}
